{% load settings_tags %}

<!-- Main Sidebar Container -->
<div class="bp">
  <div class="wrapper">
    <aside class="main-sidebar sidebar-dark-primary elevation-4">

      {% block branding %}
      <a href="{% url 'admin:index' %}" class="brand-link d-flex justify-content-center">
        {% settings 'SHOW_LOGO' as show_logo %}

        {% if show_logo %}
          <img src="{% dj_settings 'LOGO_URL' %}" alt="{% settings 'SITE_NAME' %}" class="brand-image elevation-3"
             style="opacity: .8">
        {% else %}
          <span class="brand-text font-weight-light text-white">{% settings "SITE_NAME" %}</span>
        {% endif %}
      </a>
      {% endblock %}

      <!-- Sidebar -->
      <div class="sidebar">
        {% include 'admin/app_list.html' with app_list=available_apps show_changelinks=False %}
      </div>
      <!-- /.sidebar -->
    </aside>
  </div>
</div>
